﻿using SqlSugar.Extensions;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace AncheStart.Converter
{
    public class AfterNextStepConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            int val = value.ObjToInt();
            try
            {
                switch (val)
                {
                    case 0:
                        return "下一步";

                    case 1:
                        return "停止";

                    case 2:
                        return "结束";
                }
            }
            catch (Exception ex)
            {
            }
            return "其他";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
    }
}